#ifndef DRIVER_LED
#define DRIVER_LED
#include "stm32f10x_gpio.h"
#include "stm32f10x_rcc.h"

#define LED_PORT            GPIOB
#define LED_PIN             GPIO_Pin_8
#define LED_CLK             RCC_APB2Periph_GPIOB

#define led_on( )           GPIO_ResetBits( LED_PORT, LED_PIN );
#define led_off( )          GPIO_SetBits( LED_PORT, LED_PIN );

void led_init( void );

#endif
